package gl.android.jxzs.bean;

import java.text.SimpleDateFormat;
import java.util.Date;

public class CreateTime {

	private int date;
	private int day;
	private int hours;
	private int minutes;
	private int month;
	private int seconds;
	private long time;
	private int timezoneOffset;
	private int year;

	/**
	 * 
	 * @return The date
	 */
	public int getDate() {
		return date;
	}

	/**
	 * 
	 * @param date
	 *            The date
	 */
	public void setDate(int date) {
		this.date = date;
	}

	/**
	 * 
	 * @return The day
	 */
	public int getDay() {
		return day;
	}

	/**
	 * 
	 * @param day
	 *            The day
	 */
	public void setDay(int day) {
		this.day = day;
	}

	/**
	 * 
	 * @return The hours
	 */
	public int getHours() {
		return hours;
	}

	/**
	 * 
	 * @param hours
	 *            The hours
	 */
	public void setHours(int hours) {
		this.hours = hours;
	}

	/**
	 * 
	 * @return The minutes
	 */
	public int getMinutes() {
		return minutes;
	}

	/**
	 * 
	 * @param minutes
	 *            The minutes
	 */
	public void setMinutes(int minutes) {
		this.minutes = minutes;
	}

	/**
	 * 
	 * @return The month
	 */
	public int getMonth() {
		return month;
	}

	/**
	 * 
	 * @param month
	 *            The month
	 */
	public void setMonth(int month) {
		this.month = month;
	}

	/**
	 * 
	 * @return The seconds
	 */
	public int getSeconds() {
		return seconds;
	}

	/**
	 * 
	 * @param seconds
	 *            The seconds
	 */
	public void setSeconds(int seconds) {
		this.seconds = seconds;
	}

	/**
	 * 
	 * @return The time
	 */
	public long getTime() {
		return time;
	}

	/**
	 * 
	 * @param time
	 *            The time
	 */
	public void setTime(long time) {
		this.time = time;
	}

	/**
	 * 
	 * @return The timezoneOffset
	 */
	public int getTimezoneOffset() {
		return timezoneOffset;
	}

	/**
	 * 
	 * @param timezoneOffset
	 *            The timezoneOffset
	 */
	public void setTimezoneOffset(int timezoneOffset) {
		this.timezoneOffset = timezoneOffset;
	}

	/**
	 * 
	 * @return The year
	 */
	public int getYear() {
		return year;
	}

	/**
	 * 
	 * @param year
	 *            The year
	 */
	public void setYear(int year) {
		this.year = year;
	}

	@Override
	public String toString() {
		return new SimpleDateFormat("yyyy-MM-DD HH:mm:ss")
				.format(new Date(time));
	}
}
